package com.aplink.generic.pojo;

import android.text.TextUtils;

import com.aplink.generic.dictionary.GenericDictionary;
import com.aplink.generic.util.ResourcesHelper;

public class MainMenu extends GenericDictionary<String, MainMenuItem> {
    /**
     * 
     */
    private static final long serialVersionUID = 697612849086950963L;
    private String mDrawerClose;
    private String mDrawerIcon;
    private String mDrawerOpen;

    public final int getDrawerCloseID() {
        if (TextUtils.isEmpty(this.mDrawerClose)) {
            return ResourcesHelper.RESOURCE_NOT_FOUND;
        }
        return ResourcesHelper.getDrawableIdByName(this.mDrawerClose);
    }

    public final int getDrawerIconID() {
        if (TextUtils.isEmpty(this.mDrawerIcon)) {
            return ResourcesHelper.RESOURCE_NOT_FOUND;
        }
        return ResourcesHelper.getDrawableIdByName(this.mDrawerClose);
    }

    public final int getDrawerOpenID() {
        if (TextUtils.isEmpty(this.mDrawerOpen)) {
            return ResourcesHelper.RESOURCE_NOT_FOUND;
        }
        return ResourcesHelper.getDrawableIdByName(this.mDrawerOpen);
    }

    public final void setDrawerClose(final String drawerClose) {
        this.mDrawerClose = drawerClose;
    }

    public final void setDrawerIcon(final String drawerIcon) {
        this.mDrawerIcon = drawerIcon;
    }

    public final void setDrawerOpen(final String drawerOpen) {
        this.mDrawerOpen = drawerOpen;
    }

}
